﻿@model BlackBox.UserProfiles
@{
    ViewBag.Title = "EditProfile";
}

<div>
    <p>
        <a href="~/Account/Profile?name=@Model.UserName">Back to profile</a>
    </p>

    <h3>EditProfile</h3>

    <p>You're logged in as @Model.UserName.</p>

    <h5>Edit</h5>

    @using (Html.BeginForm("EditProfile" ,"Account",FormMethod.Post,new {enctype="multipart/form-data"})) {
        @Html.ValidationSummary(true)
        <fieldset>
            @Html.Hidden("UserId", Model.UserId)
            @Html.Hidden("UserName", Model.UserName)
            <div>
                <div class="editor-label">
                    @Html.LabelFor(model => model.Email)
                </div>

                <div class="editor-field">
                    @Html.EditorFor(model => model.Email)
                </div>
            </div>
            <div>
                <div class="editor-label">
                    @Html.LabelFor(model => model.About)
                </div>

                <div class="editor-field">
                    @Html.TextAreaFor(model => model.About) 
                </div>
            </div>
            <div>
                <div class="editor-label">
                    @Html.LabelFor(model => model.Img)
                </div>

                <div class="editor-field">
                    @Html.EditorFor(model => model.Img)
                </div>
            </div>

                <input type="submit" value="Save" />
        </fieldset>
    }

    <p> If you want to change you password <a href="~/Account/Manage">Click Here!</a></p>
</div>

